import axios from "./axios";
//登录接口
export function loginapi(data: {
    loginname:string,
    password: string
}) {
    return axios({
        url: '/user/login',
        method: 'post',
        data
    })
}
//判断手机号是否被注册
export function telapi(data: {
   tel:string,
}) {
    return axios({
        url: '/user/docheckphone',
        method: 'post',
        data
    })
}
// 发送验证码
export function telcode(data: {
    tel:string,
 }) {
     return axios({
         url: '/user/dosendmsgcode',
         method: 'post',
         data
     })
 }
//  确认验证码
 export function testcode(data: {
    tel:string,
    telcode:string
 }) {
     return axios({
         url: '/user/docheckcode',
         method: 'post',
         data
     })
 }
 //完成注册
 export function registfn(data: {
    tel:string,
    password:string
 }) {
     return axios({
         url: '/user/dofinishregister',
         method: 'post',
         data
     })
 }